package cn.itsource.ymcc.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class AggrPageList<T> extends PageList<T> {
    private Map<String, List<AggrTermsBucket>> aggrs = new HashMap<>();

    public AggrPageList(long total,List<T> rows,Map<String, List<AggrTermsBucket>> aggrs){
        super(total , rows);
        this.aggrs = aggrs;
    }

    public AggrPageList(){
    }

    public AggrPageList(Map<String, List<AggrTermsBucket>> aggrs){
        this.aggrs = aggrs;
    }
}
